#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int a, b, c, d, sum1, sum2;
	scanf("%d %d %d %d", &a, &b, &c, &d);
	if (a == c && b == d)
	{
		
	}
	if (a > c && b > d)
    {
		sum1 = c + 23 - a;
		sum2 = d + 60 - b;
	}
	if()
}